<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
#headTag('上传头像')
<script type="text/javascript">
function reloadPhoto(photoPath){
	$("#photo").attr("src", photoPath + "?" + Math.random());
}
</script>
</head>
<body>
<div id="page">
#parse("default/_header.htm")
<div id="middle">
<div id="main_wrap">
	<div id="main">
		#topbar()
		<div class="center">
			<h1>修改头像</h1>
			<div class="content">
				<div class="photo">
					<img id="photo" src="${url.base}#if($owner.extInfo.photoPath)$owner.extInfo.photoPath#{else}/static/photo.jpg#end"/>
					<iframe name="uploadIframe" id="uploadIframe" style="display:none;"></iframe>
					<form action="${url.base}/account/$owner.id/photo" method="post" enctype="multipart/form-data" target="uploadIframe">
						<input name="photo" type="file" size="45"/><br/><br/>
						<input type="submit" value="提交"/>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
#parse("default/center/_sidebar.htm")
</div>
</div>
#parse("default/_footer.htm")
</body>
</html>